package de.ifi.lmu.snitzelhunt.util.basics;

import java.util.ArrayList;

/**
 * A simple Container Object for an ArrayList<Task> necessary for json handling
 * with the Google gson Library
 * 
 * @author jaschkowitz
 * 
 */
public class RouteInfoContainer {
	ArrayList<RouteInfo> info;

	public RouteInfoContainer() {
	}

	public ArrayList<RouteInfo> getInfo() {
		return info;
	}

	public void setInfo(ArrayList<RouteInfo> info) {
		this.info = info;
	}

	public String toString() {
		StringBuilder sbuild = new StringBuilder();
		sbuild.append(getClass().getName() + " \n");
		if (getInfo() != null) {
			sbuild.append("RouteInfos: "+getInfo().size() +"\n");
			for (RouteInfo i : getInfo()) {
				sbuild.append(i + " \n");
			}
		} else
			sbuild.append("Routes null");
		return sbuild.toString();
	}
}
